import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: () => import('../views/Home.vue')
  },
  {
    path: '/competition/:id',
    name: 'CompetitionDetail',
    component: () => import('../views/CompetitionDetail.vue')
  },
  {
    path: '/qa',
    name: 'QACenter',
    component: () => import('../views/QACenter.vue')
  },
  {
    path: '/learning',
    name: 'LearningCenter',
    component: () => import('../views/LearningCenter.vue')
  },
  {
    path: '/projects',
    name: 'ProjectLibrary',
    component: () => import('../views/ProjectLibrary.vue')
  },
  {
    path: '/center',
    name: 'CenterView',
    component: () => import('../views/CenterView.vue')
  },
  {
    path: '/login',
    name: 'LonginView',
    component: () => import('../views/LonginView.vue')
  },
  {
    path: '/register',
    name: 'RegisterView',
    component: () => import('../views/RegisterView.vue')
  },
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
